// 导入路由插件
import VueRouter from 'vue-router'
import Vue from 'vue'

// 使用插件 - 重要
Vue.use(VueRouter)

// 导入组件
import Sport from '../48.嵌套路由/views/Sport.vue'
import China from '../48.嵌套路由/views/China.vue'



// 创建路由规则
const router = new VueRouter({
  routes: [
   {
    path:'/Sport',
    component:Sport,

    children:[
      {
        path:'/China',
        component:China
      }
    ]
  
   }
  ]
})

export default router